﻿using System;
namespace _1._3DStructurePoint
{
     struct Point3D
    {
       private int coordX; //{ get;  set; }
       private int coordY; //{ get; set; }
       private int coordZ; //{ get; set; }

       public int CoordX
       {
           get { return this.coordX; }
           set { this.coordX = value; }
       
       }
       public int CoordY
       {
           get { return this.coordY; }
           set { this.coordY = value; }

       }
       public int CoordZ
       {
           get { return this.coordZ; }
           set { this.coordZ = value; }

       }
        static public readonly Point3D center = new Point3D(0, 0, 0);

        public Point3D(int coordX, int coordY, int coordZ)
            : this()
        {
            this.CoordX = coordX;
            this.CoordY = coordY;
            this.CoordZ = coordZ;
            
        }


        public override string ToString()
        {
            return "Coordinate X: " + this.coordX + "\n" + "Coordinate Y: " + this.coordY + "\n" + "Coordinate Z: " + this.coordZ + "\n";

        }
    }
}